LassoScript Utility
Basics Browse Detail

[String->Get]

Tag Link [String->Get] Category String
Type Member Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type String (Character) Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[String->Get] returns a specific character from the string. Requires a single integer parameter.

Syntax

[String Variable->(GetCharacter Index)]

Parameters

Required Parameters
Character Index The index of the character which should be returned.

Examples

To get each character from a string:

Use the [String->Get] tag. The following example fetches each character of a string individually and displays them on separate lines.

[Variable: 'theString' = 'OmniPilot']
[Loop: $theString->Length]
  <br>[Output: $theString->(Get: Loop_Count)]
[/Loop]

<br>O
<br>M
<br>n
<br>i
<br>P
<br>i
<br>l
<br>o
<br>t

Related Tags

Category Tags